package com.traceability.trace.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.traceability.trace.mapper.QualityinspectionMapper;
import com.traceability.trace.domain.Qualityinspection;
import com.traceability.trace.service.IQualityinspectionService;

/**
 * 检测信息管理Service业务层处理
 * 
 * @author xulin
 * @date 2025-01-09
 */
@Service
public class QualityinspectionServiceImpl implements IQualityinspectionService 
{
    @Autowired
    private QualityinspectionMapper qualityinspectionMapper;

    /**
     * 查询检测信息管理
     * 
     * @param inspectionId 检测信息管理主键
     * @return 检测信息管理
     */
    @Override
    public Qualityinspection selectQualityinspectionByInspectionId(Long inspectionId)
    {
        return qualityinspectionMapper.selectQualityinspectionByInspectionId(inspectionId);
    }

    /**
     * 查询检测信息管理列表
     * 
     * @param qualityinspection 检测信息管理
     * @return 检测信息管理
     */
    @Override
    public List<Qualityinspection> selectQualityinspectionList(Qualityinspection qualityinspection)
    {
        return qualityinspectionMapper.selectQualityinspectionList(qualityinspection);
    }

    /**
     * 新增检测信息管理
     * 
     * @param qualityinspection 检测信息管理
     * @return 结果
     */
    @Override
    public int insertQualityinspection(Qualityinspection qualityinspection)
    {
        return qualityinspectionMapper.insertQualityinspection(qualityinspection);
    }

    /**
     * 修改检测信息管理
     * 
     * @param qualityinspection 检测信息管理
     * @return 结果
     */
    @Override
    public int updateQualityinspection(Qualityinspection qualityinspection)
    {
        return qualityinspectionMapper.updateQualityinspection(qualityinspection);
    }

    /**
     * 批量删除检测信息管理
     * 
     * @param inspectionIds 需要删除的检测信息管理主键
     * @return 结果
     */
    @Override
    public int deleteQualityinspectionByInspectionIds(Long[] inspectionIds)
    {
        return qualityinspectionMapper.deleteQualityinspectionByInspectionIds(inspectionIds);
    }

    /**
     * 删除检测信息管理信息
     * 
     * @param inspectionId 检测信息管理主键
     * @return 结果
     */
    @Override
    public int deleteQualityinspectionByInspectionId(Long inspectionId)
    {
        return qualityinspectionMapper.deleteQualityinspectionByInspectionId(inspectionId);
    }
}
